<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditPackingListEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditPackingListEntityLabel_container}" for="container" />
                    <h:selectOneMenu id="container" value="#{packingListEntityController.selected.container}" title="#{bundle.EditPackingListEntityTitle_container}" >
                        <f:selectItems value="#{contactEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditPackingListEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{packingListEntityController.selected.id}" title="#{bundle.EditPackingListEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.EditPackingListEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{packingListEntityController.selected.createdAt}" title="#{bundle.EditPackingListEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditPackingListEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{packingListEntityController.selected.createdBy}" title="#{bundle.EditPackingListEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.EditPackingListEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{packingListEntityController.selected.lastModifiedAt}" title="#{bundle.EditPackingListEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditPackingListEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{packingListEntityController.selected.lastModifiedBy}" title="#{bundle.EditPackingListEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <h:commandLink action="#{packingListEntityController.update}" value="#{bundle.EditPackingListEntitySaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditPackingListEntityViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{packingListEntityController.prepareList}" value="#{bundle.EditPackingListEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditPackingListEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
